<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" 
    py:replace="''"/>
<title>${user.user_name} - PyHMon Web Interface</title>
</head>
<body>
    <h2>User: ${user.user_name}</h2>
    <form action="save_user" method="post">
	<input type = "hidden" name = "userid" value = "${user.user_id}"/>
	Name: <input type="text" name="user_name" 
	    value = "${user.user_name}"/><br />
	Full Name: <input type="text" name="display_name" 
	    value = "${user.display_name}"/><br />
	E-mail address: <input type = "text" name = "email_address"
	    value = "${user.email_address}"/><br />
	Phone number: <input type = "text" name = "phone_num"
	    value = "${user.phone_num}"/><br />
	Password: <input type = "password" name = "password"
	    value = "password" /><br />
	<h3>Groups:</h3>
	<div py:for = "g in groups">
	${g.group_name}: <input type = "checkbox" py:attrs="{'checked':'yes'} 
	    if g in user.groups else {}" name = "groups"
		value = "${g.group_name}" />
	</div>
	<br /><input type="submit" user_name="submit" value="Save"/>
    </form>
</body>
</html>